package pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class HomePage extends Page{
	
	@FindBy(css = "a[href='./?go=add']")//img[alt=\'Add movie\'], img[src='http://localhost/php4dvd/tpl/default/images/icons/32x32/add.png'], //div[@id='container']/div[@id='wrapper']/div[@id='content']/section/nav/ul/li[0]/div[@class='button']/div/a[@href='./?go=add']"
	public static WebElement addMovie;
	
	@FindBy(css = "a[href='./?go=imdbupdate']")
	public static WebElement refresh;
	
	@FindBy(css = "a[href='./?go=export']")
	public static WebElement export;
	
	@FindBy(id = "q")
	public static WebElement searchFill;
	
	@FindBy(tagName = "section")
	public static WebElement div;

	public static void videoPageClick(String locator) {
		driver.findElement(By.cssSelector("a[href='./?go=movie&id=" + (locator) + "']")).click();
		
	}
	
}
